<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="description" content="A Javadoc-like Documentation Tool for for all versions of XSLT (1.0, 1.1, 2.0). Available for free on a GPL licence. " />
		<meta name="author" content="P&amp;P Software GmbH" />
		<meta name="keywords" content="XSLT, XSLT documentation, XSLT 2.0, Open Source, Documenting XSLT, xsltdoc, xsldoc, Javadoc, Doxygen, xdoc, gpl" />
    <title>
      XSLTdoc - A Code Documentation Tool for XSLT - util.xsl
    </title>
    <link href="../XSLTdoc.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id="navbar">
      <div id="menuLinks">
        <a class="menuLink" href="../index.html">Main Page</a><a class="menuLink" href="../stylesheetList.html">Stylesheet List</a><a class="menuLink" href="../functionTemplateList.html">Function/Template List</a>
      </div>
    </div>
    <div id="content">
      <div id="stylesheetDetail"><h1>util.xsl</h1><div class="detailDoc"><div class="shortDescr">
    Utility functions used by other stylesheets</div><div class="detailDescr">
    
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Author:</div><div class="propertyContent">ibirrer</div></div><div class="property"><div class="propertyCaption">CVS Id:</div><div class="propertyContent"> util.xsl 24 2005-01-04 10:13:06Z ibirrer </div></div><div class="property"><div class="propertyCaption">Copyright:</div><div class="propertyContent">2004, P&amp;P Software GmbH</div></div><div class="property"><div class="propertyCaption">XSLT Version:</div><div class="propertyContent">2.0</div></div><div class="property"><div class="propertyCaption">Namespace Prefix Summary:</div><div class="propertyContent"><div class="namespacePrefixDetail"><span class="namespacePrefix">util</span> - <span class="namespace">http://www.pnp-software.com/util</span></div><div class="namespacePrefixDetail"><span class="namespacePrefix">xd</span> - <span class="namespace">http://www.pnp-software.com/XSLTdoc</span></div><div class="namespacePrefixDetail"><span class="namespacePrefix">xs</span> - <span class="namespace">http://www.w3.org/2001/XMLSchema</span></div><div class="namespacePrefixDetail"><span class="namespacePrefix">xsl</span> - <span class="namespace">http://www.w3.org/1999/XSL/Transform</span></div></div></div></div></div></div><div id="templateModesSummary" class="summarySection"><h2>Template Modes Summary</h2><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#modesDetail_mode_stripXML">stripXML</a></span></div><div class="shortDoc"><div class="shortDescr">No short description available</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#modesDetail_mode_xmlToHtml">xmlToHtml</a></span></div><div class="shortDoc"><div class="shortDescr">No short description available</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#modesDetail_mode_xmlToString">xmlToString</a></span></div><div class="shortDoc"><div class="shortDescr">No short description available</div></div></div></div><div id="matchTemplatesSummary" class="summarySection"><h2>Match Templates Summary</h2><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e358">*</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_stripXML">stripXML</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e354">source</a></div><div class="shortDoc"><div class="shortDescr">Helper template for stripXML function</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e366">comment()</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_stripXML">stripXML</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e363">source</a></div><div class="shortDoc"><div class="shortDescr">Helper template for stripXML function</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e349">text()</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_stripXML">stripXML</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e346">source</a></div><div class="shortDoc"><div class="shortDescr">Helper template for stripXML function</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e420">*</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_xmlToHtml">xmlToHtml</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e415">source</a></div><div class="shortDoc"><div class="shortDescr">
    Helper template for xmlToHtml function</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e455">text()</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_xmlToHtml">xmlToHtml</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e450">source</a></div><div class="shortDoc"><div class="shortDescr">
    Helper template for xmlToHtml function</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e392">*</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_xmlToString">xmlToString</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e386">source</a></div><div class="shortDoc"><div class="shortDescr">
    Helper template for xmlToString function</div></div></div></div><div id="functionsSummary" class="summarySection"><h2>Functions Summary</h2><div class="listItem"><div class="declaration"><span class="paramType">element() </span><span class="declName"><a class="declLink" href="#d25e293">util:appendElement</a></span> (<span class="declCaption">param: </span><span class="paramType">element() </span><span class="paramName">container</span>, <span class="paramType">element() </span><span class="paramName">element</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e290">source</a></div><div class="shortDoc"><div class="shortDescr">
    Appends an element to another element</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e283">util:fileSuffixToHtml</a></span> (<span class="declCaption">param: </span><span class="paramName">fileUri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e280">source</a></div><div class="shortDoc"><div class="shortDescr">
  
  </div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e35">util:getFile</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e32">source</a></div><div class="shortDoc"><div class="shortDescr">Extracts the filename of an URI</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e25">util:getFolder</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e21">source</a></div><div class="shortDoc"><div class="shortDescr">Extracts the folder part of an URI</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e155">util:getRelativeUri</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">from</span>, <span class="paramType">xs:string </span><span class="paramName">to</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e146">source</a></div><div class="shortDoc"><div class="shortDescr"> 
  	Returns the relative link of a given folder resolved to another folder</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e214">util:getRelativeUriFiles</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">from</span>, <span class="paramType">xs:string </span><span class="paramName">to</span>, <span class="paramType">xs:boolean </span><span class="paramName">reverse</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e196">source</a></div><div class="shortDoc"><div class="shortDescr">Builds realive link between to files</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e45">util:getSharedPath</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">folder1</span>, <span class="paramType">xs:string </span><span class="paramName">folder2</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e42">source</a></div><div class="shortDoc"><div class="shortDescr">Get the shared path of two folders</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e508">util:indentText</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">string </span><span class="paramName">indent</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e499">source</a></div><div class="shortDoc"><div class="shortDescr">
    Adds indentation to each line of a text</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e530">util:indentText</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">string </span><span class="paramName">indent</span>, <span class="paramType">boolean </span><span class="paramName">indentFirstLine</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e518">source</a></div><div class="shortDoc"><div class="shortDescr">
    Adds indentation to each line of a text</div></div></div><div class="listItem"><div class="declaration"><span class="paramType">xs:boolean </span><span class="declName"><a class="declLink" href="#d25e116">util:isAbsolutePath</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">path</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e113">source</a></div><div class="shortDoc"><div class="shortDescr">
    Tests if a the given path describes an absolute path</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e139">util:normalizeFolder</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e123">source</a></div><div class="shortDoc"><div class="shortDescr">
  		If the uri does not end with a slash, a slash is added at the end.
  	</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e106">util:normalizeUri</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e100">source</a></div><div class="shortDoc"><div class="shortDescr"> Replaces triple slashes '///' by a single slash</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e90">util:pathToUri</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">path</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e74">source</a></div><div class="shortDoc"><div class="shortDescr">Transforms a filesystem path to a URI. </div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e470">util:removeTextIndent</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e464">source</a></div><div class="shortDoc"><div class="shortDescr">
    Removes all indentation from each line of a text</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e488">util:removeTextIndent</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">string </span><span class="paramName">indent</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e479">source</a></div><div class="shortDoc"><div class="shortDescr">
    Removes specific indentation from each line of a text</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e319">util:repeatString</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">int </span><span class="paramName">count</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e309">source</a></div><div class="shortDoc"><div class="shortDescr">
    Repeats a string several times</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e339">util:stripXML</a></span> (<span class="declCaption">param: </span><span class="paramName">nodes</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e336">source</a></div><div class="shortDoc"><div class="shortDescr">
    Strips all xml elements and comments from a set of nodes and returns only the text nodes</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e263">util:substringAfterLast</a></span> (<span class="declCaption">param: </span><span class="paramName">text</span>, <span class="paramName">token</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e253">source</a></div><div class="shortDoc"><div class="shortDescr">
    Returns the string after the last occurence of a given character</div></div></div><div class="listItem"><div class="declaration"><span class="paramType">item()* </span><span class="declName"><a class="declLink" href="#d25e408">util:xmlToHtml</a></span> (<span class="declCaption">param: </span><span class="paramType">item()* </span><span class="paramName">xml</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e408">source</a></div><div class="shortDoc"><div class="shortDescr">No short description available</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a class="declLink" href="#d25e374">util:xmlToString</a></span> (<span class="declCaption">param: </span><span class="paramType">item()* </span><span class="paramName">xml</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e368">source</a></div><div class="shortDoc"><div class="shortDescr">
    Transforms an XML structure to a plain string</div></div></div></div><div id="templateModesDetail" class="detailSection"><h2>Template Modes Detail</h2><div class="listItem"><div class="declaration"><span class="declName"><a name="modesDetail_mode_stripXML">stripXML</a></span></div><div class="detailDoc"><div class="shortDescr">No short description available</div><div class="properties"><div class="property"><div class="propertyCaption">Templates Using This Mode:</div><div class="propertyContent"><div class="matchTemplatesDetail"><span class="templateName"><a href="#d25e358">*</a></span></div><div class="matchTemplatesDetail"><span class="templateName"><a href="#d25e366">comment()</a></span></div><div class="matchTemplatesDetail"><span class="templateName"><a href="#d25e349">text()</a></span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="modesDetail_mode_xmlToHtml">xmlToHtml</a></span></div><div class="detailDoc"><div class="shortDescr">No short description available</div><div class="properties"><div class="property"><div class="propertyCaption">Templates Using This Mode:</div><div class="propertyContent"><div class="matchTemplatesDetail"><span class="templateName"><a href="#d25e420">*</a></span></div><div class="matchTemplatesDetail"><span class="templateName"><a href="#d25e455">text()</a></span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="modesDetail_mode_xmlToString">xmlToString</a></span></div><div class="detailDoc"><div class="shortDescr">No short description available</div><div class="properties"><div class="property"><div class="propertyCaption">Templates Using This Mode:</div><div class="propertyContent"><div class="matchTemplatesDetail"><span class="templateName"><a href="#d25e392">*</a></span></div></div></div></div></div></div></div><div id="matchTemplatesDetail" class="detailSection"><h2>Match Templates Detail</h2><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e358">*</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_stripXML">stripXML</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e354">source</a></div><div class="detailDoc"><div class="shortDescr">Helper template for stripXML function</div><div class="detailDescr"> Do not output elements, but process subelements</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e366">comment()</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_stripXML">stripXML</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e363">source</a></div><div class="detailDoc"><div class="shortDescr">Helper template for stripXML function</div><div class="detailDescr"> Delete all XML comments</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e349">text()</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_stripXML">stripXML</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e346">source</a></div><div class="detailDoc"><div class="shortDescr">Helper template for stripXML function</div><div class="detailDescr"> Output all text nodes</div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e420">*</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_xmlToHtml">xmlToHtml</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e415">source</a></div><div class="detailDoc"><div class="shortDescr">
    Helper template for xmlToHtml function</div><div class="detailDescr">
  
  </div><div class="properties"><div class="property"><div class="propertyCaption">Namespace Prefix Summary:</div><div class="propertyContent"><div class="namespacePrefixDetail"><span class="namespacePrefix">#default</span> - <span class="namespace">http://www.w3.org/1999/xhtml</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e455">text()</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_xmlToHtml">xmlToHtml</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e450">source</a></div><div class="detailDoc"><div class="shortDescr">
    Helper template for xmlToHtml function</div><div class="detailDescr">
  
  </div><div class="properties"><div class="property"><div class="propertyCaption">Namespace Prefix Summary:</div><div class="propertyContent"><div class="namespacePrefixDetail"><span class="namespacePrefix">#default</span> - <span class="namespace">http://www.w3.org/1999/xhtml</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e392">*</a></span> (<span class="declCaption">mode: </span><span class="modeName"><a href="#modesDetail_mode_xmlToString">xmlToString</a></span>) - <a class="sourceLink" href="util.xsl.src.html#d25e386">source</a></div><div class="detailDoc"><div class="shortDescr">
    Helper template for xmlToString function</div><div class="detailDescr">
  
  </div></div></div></div><div id="functionsDetail" class="detailSection"><h2>Functions Detail</h2><div class="listItem"><div class="declaration"><span class="paramType">element() </span><span class="declName"><a name="d25e293">util:appendElement</a></span> (<span class="declCaption">param: </span><span class="paramType">element() </span><span class="paramName">container</span>, <span class="paramType">element() </span><span class="paramName">element</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e290">source</a></div><div class="detailDoc"><div class="shortDescr">
    Appends an element to another element</div><div class="detailDescr">
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">element() </span><span class="paramName">container</span><span class="paramDescr"> - </span></div><div class="parameterDetail"><span class="paramType">element() </span><span class="paramName">element</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e283">util:fileSuffixToHtml</a></span> (<span class="declCaption">param: </span><span class="paramName">fileUri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e280">source</a></div><div class="detailDoc"><div class="shortDescr">
  
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramName">fileUri</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e35">util:getFile</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e32">source</a></div><div class="detailDoc"><div class="shortDescr">Extracts the filename of an URI</div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">uri</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e25">util:getFolder</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e21">source</a></div><div class="detailDoc"><div class="shortDescr">Extracts the folder part of an URI</div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">uri</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e155">util:getRelativeUri</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">from</span>, <span class="paramType">xs:string </span><span class="paramName">to</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e146">source</a></div><div class="detailDoc"><div class="shortDescr"> 
  	Returns the relative link of a given folder resolved to another folder</div><div class="detailDescr"> 
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">from</span><span class="paramDescr"> - An absolute URI of a folder</span></div><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">to</span><span class="paramDescr"> - An absolute URI of a folder</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e214">util:getRelativeUriFiles</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">from</span>, <span class="paramType">xs:string </span><span class="paramName">to</span>, <span class="paramType">xs:boolean </span><span class="paramName">reverse</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e196">source</a></div><div class="detailDoc"><div class="shortDescr">Builds realive link between to files</div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">from</span><span class="paramDescr"> - An absolute URI of a file</span></div><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">to</span><span class="paramDescr"> - An absolute URI of a file</span></div><div class="parameterDetail"><span class="paramType">xs:boolean </span><span class="paramName">reverse</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e45">util:getSharedPath</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">folder1</span>, <span class="paramType">xs:string </span><span class="paramName">folder2</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e42">source</a></div><div class="detailDoc"><div class="shortDescr">Get the shared path of two folders</div><div class="detailDescr"> If no shared path is found the empty string is returned.</div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">folder1</span><span class="paramDescr"> - </span></div><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">folder2</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e508">util:indentText</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">string </span><span class="paramName">indent</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e499">source</a></div><div class="detailDoc"><div class="shortDescr">
    Adds indentation to each line of a text</div><div class="detailDescr">
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">text</span><span class="paramDescr"> - The text the indentation should be added to.</span></div><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">indent</span><span class="paramDescr"> - String that is used for indentation. </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e530">util:indentText</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">string </span><span class="paramName">indent</span>, <span class="paramType">boolean </span><span class="paramName">indentFirstLine</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e518">source</a></div><div class="detailDoc"><div class="shortDescr">
    Adds indentation to each line of a text</div><div class="detailDescr">
    
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">text</span><span class="paramDescr"> - The text the indentation should be added to.</span></div><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">indent</span><span class="paramDescr"> - String that is used for indentation. </span></div><div class="parameterDetail"><span class="paramType">boolean </span><span class="paramName">indentFirstLine</span><span class="paramDescr"> - If true the first line is not indented </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="paramType">xs:boolean </span><span class="declName"><a name="d25e116">util:isAbsolutePath</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">path</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e113">source</a></div><div class="detailDoc"><div class="shortDescr">
    Tests if a the given path describes an absolute path</div><div class="detailDescr">
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">path</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e139">util:normalizeFolder</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e123">source</a></div><div class="detailDoc"><div class="shortDescr">
  		If the uri does not end with a slash, a slash is added at the end.
  	</div><div class="detailDescr">
    	Otherwise the uri is left unchanged. 
    	The result is normalized with normalizeUri
    </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">uri</span><span class="paramDescr"> - An uri that points to a folder.</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e106">util:normalizeUri</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">uri</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e100">source</a></div><div class="detailDoc"><div class="shortDescr"> Replaces triple slashes '///' by a single slash</div><div class="detailDescr"> 
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">uri</span><span class="paramDescr"> - The uri to be normalized.</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e90">util:pathToUri</a></span> (<span class="declCaption">param: </span><span class="paramType">xs:string </span><span class="paramName">path</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e74">source</a></div><div class="detailDoc"><div class="shortDescr">Transforms a filesystem path to a URI. </div><div class="detailDescr">
    	Backward slashes are transformed to forward slashes and the 
    	prefix <code>file:/</code> is added, if the goven path is an absoulte path. 
    	If the argument is already a URI, it is left unchanged.
    </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">xs:string </span><span class="paramName">path</span><span class="paramDescr"> - The Path to be transformed as a string</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e470">util:removeTextIndent</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e464">source</a></div><div class="detailDoc"><div class="shortDescr">
    Removes all indentation from each line of a text</div><div class="detailDescr">
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">text</span><span class="paramDescr"> - The text the indentation should be added to.</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e488">util:removeTextIndent</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">string </span><span class="paramName">indent</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e479">source</a></div><div class="detailDoc"><div class="shortDescr">
    Removes specific indentation from each line of a text</div><div class="detailDescr">
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">text</span><span class="paramDescr"> - The text the indentation should removed from.</span></div><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">indent</span><span class="paramDescr"> - The indentation to be removed.</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e319">util:repeatString</a></span> (<span class="declCaption">param: </span><span class="paramType">string </span><span class="paramName">text</span>, <span class="paramType">int </span><span class="paramName">count</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e309">source</a></div><div class="detailDoc"><div class="shortDescr">
    Repeats a string several times</div><div class="detailDescr">
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">string </span><span class="paramName">text</span><span class="paramDescr"> - The string to repeat</span></div><div class="parameterDetail"><span class="paramType">int </span><span class="paramName">count</span><span class="paramDescr"> - how many times should the string be repeated</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e339">util:stripXML</a></span> (<span class="declCaption">param: </span><span class="paramName">nodes</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e336">source</a></div><div class="detailDoc"><div class="shortDescr">
    Strips all xml elements and comments from a set of nodes and returns only the text nodes</div><div class="detailDescr">
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramName">nodes</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e263">util:substringAfterLast</a></span> (<span class="declCaption">param: </span><span class="paramName">text</span>, <span class="paramName">token</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e253">source</a></div><div class="detailDoc"><div class="shortDescr">
    Returns the string after the last occurence of a given character</div><div class="detailDescr">
    If the given character is not found the text is returned without change.
    
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramName">text</span><span class="paramDescr"> - The text from which to extarct the substring</span></div><div class="parameterDetail"><span class="paramName">token</span><span class="paramDescr"> - The character after which the text should be returned</span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="paramType">item()* </span><span class="declName"><a name="d25e408">util:xmlToHtml</a></span> (<span class="declCaption">param: </span><span class="paramType">item()* </span><span class="paramName">xml</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e408">source</a></div><div class="detailDoc"><div class="shortDescr">No short description available</div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">item()* </span><span class="paramName">xml</span><span class="paramDescr"> - </span></div></div></div></div></div></div><div class="listItem"><div class="declaration"><span class="declName"><a name="d25e374">util:xmlToString</a></span> (<span class="declCaption">param: </span><span class="paramType">item()* </span><span class="paramName">xml</span>) - <a class="sourceLink" href="util.xsl.src.html#d25e368">source</a></div><div class="detailDoc"><div class="shortDescr">
    Transforms an XML structure to a plain string</div><div class="detailDescr">
    
  </div><div class="properties"><div class="property"><div class="propertyCaption">Parameters:</div><div class="propertyContent"><div class="parameterDetail"><span class="paramType">item()* </span><span class="paramName">xml</span><span class="paramDescr"> - XML Element. Can also be a sequence of elements. </span></div></div></div></div></div></div></div>
    </div>
    <div id="footer">
      <div style="float:left">Generated with <a target="_blank" href="http://xsltdoc.sf.net">XSLTdoc 1.2.1</a></div>
      <div style="float:right">
        <a href="http://jigsaw.w3.org/css-validator/">CSS</a>
        |
        <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
        | © 2009, <a target="_blank" href="http://www.pnp-software.com/">P&amp;P Software</a>
      </div>
      <div> </div>
    </div>
  </body>
</html>